<?php

/**
 * create_qrcode short summary.
 *
 * create_qrcode description.
 *
 * @version 1.0
 * @author xianbin
 */

//生产并返回支付二维码
class create_qrcode
{
    public static function get_qrcode($data)
    {
        error_reporting(E_ERROR);
        $ci=&get_instance();
        $ci->load->library('Wxpay/QRcode');
        $url = urldecode($data);
        return QRcode::png($url);
    }
}